﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InformationSystem.BLL.Core.Model;
using System.Data;

namespace InformationSystem.BLL.Core.Service
{
    public interface IUserService
    {
        LoginUser Login(string userid,string loginpwd);
        void LogOut(LoginUser user);
        void UpdateLoginInfo(LoginUser user, SysEnvironment envir);
        bool ChangePassword(LoginUser user, string oldpwd, string newpwd);
        
        List<LoginUser> GetSysUser();

        bool UpdateSysUserInfo(LoginUser user);
        bool CreateSysUserInfo(LoginUser user);
        bool DeleteSysUserByID(string userID);

        DataTable GetUserContact();

        IList<string> GetCollegeAssistant(LoginUser user);

        int GetAllStudentCount();

        int GetStudentCountInGrade(LoginUser user);

        int GetAllAssistantCount();

        IList<SearchResult> GetUserContactWithFilter(string filter);

    }
}
